package com.whatech.mall.order.model.dto.messaging;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 下单成功加积分消息，需要实现 Serializable 接口。
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderAddBonusMessageDTO implements Serializable {

    private static final long serialVersionUID = 3279035384845745425L;

    // 订单ID
    private Long orderId;
    // 用户ID
    private Long userId;
    // 订单总价
    private double totalPrice;
    // 积分
    private int bonus;

}
